package com.guigu.erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.erp.dto.ManufactureDesignProcedureDetailsDto;
import com.guigu.erp.pojo.DesignModuleDetails;
import com.guigu.erp.pojo.ManufactureDesignProcedureDetails;
import com.guigu.erp.utils.PageUtils;

import java.util.List;

/**
 * @author Lenovo
 */
public interface ManufactureDesignProcedureDetailsService extends IService<ManufactureDesignProcedureDetails> {
    /**
     * 按条件分页查询生产工序明细表
     * @param
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageUtils<ManufactureDesignProcedureDetails> procedureDetailsPage(Integer id, int pageNo, int pageSize);

    /**
     * 根据父级编号查询工序明细
     * @param parentId
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageUtils<ManufactureDesignProcedureDetails> detail(Integer parentId, int pageNo, int pageSize);

    /**
     * 添加工序物料和明细
     * @param manufactureDesignProcedureDetailsDto
     */
    void makeModule(ManufactureDesignProcedureDetailsDto manufactureDesignProcedureDetailsDto);

    /**
     *产品生产工序明细查询通过设计编号查询
     * @param id
     * @return
     */
    List<ManufactureDesignProcedureDetails> detailsById(int id);
}
